import http from '@/utils'

class Student {
    // 获取列表  必传module 为module接口里的code
    getList(reload) {
        let url = '/student/index';
        return http.get(url, reload)
    }

    // 新增
    createContent(reload) {
        let url = '/student/create';
        return http.post(url, reload)
    }

    // 编辑
    editContent(reload) {
        let url = '/student/edit';
        return http.post(url, reload)
    }

    // 详情 detail 参数 id
    getContentDetail(reload) {
        let url = '/student/detail';
        return http.get(url, reload)
    }

    // 删除
    deleteContent(reload) {
        let url = '/student/delete';
        return http.post(url, reload)
    }

    // 更新唯一字段
    updateOnlyfield(reload) {
        let url = '/student/onlyfield';
        return http.post(url, reload)
    }

    // 获取EPT测试结果
    getptResult(reload) {
      let url = '/student/getptresult';
        return http.get(url, reload)
    }

    // 老师列表 teacher
    getTeacher(reload) {
        let url = '/student/teacher';
        return http.get(url, reload)
    }

    // 获取学员打卡
    getClockin(reload) {
      let url = '/student/clockin';
      return http.get(url, reload)
  }

    // // 导入数据
    // importStudent(reload) {
    //     let url = '/customer/import_excel';
    //     return http.post(url, reload)
    // }

    // // 导出数据
    // exportStudent(reload) {
    //     let url = '/customer/export_excel';
    //     return http.get(url, reload)
    // }
}

export default new Student()